<div class="layui-header">
	<div class="layui-logo">fgo不实用工具</div>
	<ul class="layui-nav layui-layout-right">
		<% if (@AuthenticationUtils.isGuest()) { %>
		<li class="layui-nav-item"><a href="${ctxPath}/login">登录</a></li>
		<li class="layui-nav-item"><a href="${ctxPath}/register">注册</a></li>
		<% } %>
		<% if (@AuthenticationUtils.isUser()) { %>
		<li class="layui-nav-item">
			<a href="javascript:void(0)">
				<img class="layui-nav-img" src="${ctxPath}${loginUser.avatarUrl}?pixel=30" onerror="this.src='/img/default-avatar.png'">
				${loginUser.name}
			</a>
			<dl class="layui-nav-child">
				<dd><a href="${ctxPath}/info">基本资料</a></dd>
				<dd><a href="${ctxPath}/modifyPassword">修改密码</a></dd>
			</dl>
		</li>
		<li class="layui-nav-item"><a href="${ctxPath}/doLogout">注销</a></li>
		<% } %>
	</ul>
</div>
